package com.zsrt.t01;

import org.junit.Test;

public class T01 {
	/**
	 * 打印三角型
	 */
	@Test
	public void test(){
		for(int i=1;i<=4;i++){
			for(int kg=0;kg<=3-i;kg++){
				System.out.print(" ");
			}
			for(int sunwei=2;sunwei<=i*2;sunwei++){
				System.out.print("*");
			}
			System.out.println();
		}
	}
}